source ~/.bashrc
dir=/home/work_nfs15/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/exp/salmonn_v16/3_epoch
mkdir -p $dir
train_config=conf/train_salmonn_v16.yaml
test_data_dir="/home/work_nfs15/xlgeng/data/data_shards/chat_wav_data"
test_sets="cv"

pt_name="epoch_15"
decode_checkpoint=$dir/"${pt_name}".pt
stage=5
stop_stage=5
data_type=shard

echo "final checkpoint is $decode_checkpoint"
test_sets=$(echo "$test_sets" | sed 's/ /--/g')


gpu_id="0"
gxl_num="${gpu_id}_common_"
test_sets=$(echo "$test_sets" | sed 's/ /--/g')
decode_checkpoint_name="${gxl_num}_${pt_name}"
my_named_nohup "${decode_checkpoint_name}${gpu_id}" ./recognize.sh --gpu_id $gpu_id --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"  --test_sets "$test_sets" --data_type $data_type

echo "finish!"